Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Answers for Language in C Online Test - Online Exam - Online Quiz - Mock Test

←Go Back to Online Practice Test

Ques. What is the output of the program?
void main()
{
char s[]="who is the best";
char t[40];
char *ss,*tt;
while(*tt++=*ss++);
printf("%s",t);
getch();
}
Option 1. who is the best
Option 2. core dump (Garbage value)
Option 3. Error Message
Option 4. Goes into infinite loop

Ans. Option 2

Please provide the reason below. The best provided reason will be displayed with your name(if you are logged-in) on website.
Enter Reason
 
Is it helpful? Yes No
©2024 WithoutBook